Diaphragm thickness measurement